package com.ruoyi.project.bid.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 【请填写功能名称】对象 customer
 * 
 * @author ruoyi
 * @date 2023-11-11
 */
public class Customer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String name;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String companyName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String mobile;

    /** 联系人职务 */
    @Excel(name = "联系人职务")
    private String post;

    private String wxId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 部门状态（0正常 1停用） */
    @Excel(name = "部门状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    @NotBlank(message = "客户姓名不能为空")
    @Size(min = 0, max = 25, message = "微信账号长度不能超过25个字符")
    public String getName() 
    {
        return name;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    @NotBlank(message = "公司名称不能为空")
    @Size(min = 0, max = 100, message = "公司名称长度不能超过100个字符")
    public String getCompanyName() 
    {
        return companyName;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    @NotBlank(message = "联系电话不能为空")
    @Size(min = 0, max = 25, message = "联系电话长度不能超过25个字符")
    public String getMobile() 
    {
        return mobile;
    }
    public void setPost(String post) 
    {
        this.post = post;
    }

    @NotBlank(message = "联系人职务不能为空")
    @Size(min = 0, max = 100, message = "联系人职务长度不能超过100个字符")
    public String getPost() 
    {
        return post;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @NotBlank(message = "微信不能为空")
    public String getWxId() {
        return wxId;
    }

    public void setWxId(String wxId) {
        this.wxId = wxId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("companyName", getCompanyName())
            .append("mobile", getMobile())
            .append("post", getPost())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
